<?php
class ScriptsController extends Zend_Controller_Action {

	public function init() {
		$layout = $this->_helper->layout();
		$layout->setLayout('scripts');
	}

	public function preDispatch() {
		$this->view->render('scripts/sidebar-left.phtml');
	}

	public function initializeCharacterAction() {
		$this->view->headScript()->appendFile('/backbone/scripts/character-0.0.1.js');
	}

	public function unitAction() {
		$this->view->headScript()->appendFile('/backbone/scripts/unit-0.1.js');
	}

	public function canvasAction() {
		$this->view->headScript()->appendFile('/backbone/scripts/canvas-0.1.js');
	}

	public function fpsCountAction() {
		$this->view->headScript()->appendFile('/backbone/scripts/fps-count.js');
	}

	public function spritesAction() {
		$this->view->headScript()->appendFile('/backbone/scripts/libraries/sprites.js');
		$this->view->headScript()->appendFile('/backbone/scripts/sprites.js');
	}
}
?>